package com.pug.mapper.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pug.pojo.UserOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Author: lqm
 * create: 2022/4/3 18:41
 * Lover: lqx
 *
 * @see
 */
@Repository
@Mapper
public interface UserOrderMapper extends BaseMapper<UserOrder> {

    void updateNoPayOrderStatus();

    /**
     * 查询订单状态的统计信息
     * @return
     */
    List<Map<String,Object>> selectOrderStatusInfo(@Param("userId")Long userId);
    UserOrder queryNoPay(@Param("hotelId") Long hotelId,@Param("hotelTypeId") Long hotelTypeId);
}
